package com.hummingbird.portal.service;

import com.github.pagehelper.PageInfo;
import com.hummingbird.portal.dto.QuestionDTO;
import com.hummingbird.portal.pojo.Question;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author -1E18
 * @since 2024-09-22
 */
public interface IQuestionService extends IService<Question> {
    PageInfo<Question> getMyQuestions(String username, Integer pageNum, Integer pageSize);

    void saveQuestion(QuestionDTO questionDTO, String username);    // username 查询对应的对象

    Integer countQuestionByUserId(Integer id);

    PageInfo<Question> getQuestionsByTeacherName(String username, Integer pageNum, Integer pageSize);

}
